package com.shzq.pojo;

import org.springframework.data.geo.Point;

/**
 * @author zml
 * time: 2020/5/30 10:35
 * mailbox  zmlelselove@126.com
 */
public class Node{
    private String key;
    private Point point;
    private String groupName;
    private boolean visited;

    @Override
    public String toString() {
        return point.toString();
    }

    public Node() {
    }

    public Node(String key, Point point, String groupName) {
        this.key = key;
        this.point = point;
        this.groupName = groupName;
    }
    public boolean isVisited() {
        return visited;
    }

    public void setVisited(boolean visited) {
        this.visited = visited;
    }
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Point getPoint() {
        return point;
    }

    public void setPoint(Point point) {
        this.point = point;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Node node = (Node) o;
        return node.key.equals(this.key);
    }

    @Override
    public int hashCode() {
        return key.hashCode();
    }
}
